class UserMailer < ActionMailer::Base

  def user_registration(user)
    setup_email
    @subject    = 'Рeгистрация на rupycon.ru'
    @recipients = user.email
    @body[:user] = user
  end

  protected
  def setup_email
    @headers    = {}
    @recipients  = ADMIN_EMAIL
    @from        = ADMIN_EMAIL
    @sent_on     = Time.now
  end
end
